package com.iran.observer.jingzongObserverTest;

public class LlaObserver implements IObserver {
    private boolean isWork;//是否在工作状态
    private String working;
    @Override
    public void update() {
        this.isWork=true;
        System.out.println("莉莉安更新了状态");
        setWorking("正在工作中...");
    }

    public boolean isWork() {
        return isWork;
    }

    public void setWork(boolean work) {
        isWork = work;
    }

    public String getWorking() {
        return working;
    }

    public void setWorking(String working) {
        this.working = working;
    }
}
